#ifndef USECOLORTDEGATE_H
#define USECOLORTDEGATE_H

#include <QtGui/QMainWindow>
#include "../GeneratedFiles/ui_usecolortdegate.h"
#include <QColor>
#include <QTableWidget>
#include <QStandardItemModel>
#include <QDialog>
#include "QxColorDelegate.h"

class UseColortDegate : public QDialog
{
	Q_OBJECT

public:
	UseColortDegate(QWidget *parent = 0, Qt::WFlags flags = 0);
	~UseColortDegate();
	
	struct colorbox
	{
		int m_index;
		long m_number;
		QString m_name;
	};
private slots:
	void on_listWidget_itemClicked(QListWidgetItem *item);

signals:
	void itemPressed(int);
	
protected:
	void updateCreateColorlist(QTableWidget &m_color_table);
private:
	Ui::UseColortDegateClass ui;
	QxColorDelegate mydelegate;

};

#endif // USECOLORTDEGATE_H
